package DAD.sunday;

import java.util.Arrays;
import java.util.Random;

public class Chick extends Animal  {

    Chick(String name, int age, String color) {
        super(name, age, color);

    }
    void layEggs(){
        System.out.println(name+"我可以下蛋");
    }

    @Override
    void eat() {
        System.out.println(name+"吃小米");
    }

    /*int[] a = {10,20,30,40};
int[] b= Arrays.copyOf(a,4);
        for (int i = 0; i < b.length ; i++) {
            System.out.println(b[i]);
        }*/



        /*int[] a = {10,20,30,40,50};
        int[] b = new int[6];
        System.arraycopy(a,0,b,1,4);
        for (int i = 0; i < b.length ; i++) {
            System.out.println(b[i]);
        }*/



}
